{extend name="template/base" /}
{block name="content"}
<div class="page-container">
    <input id="search-name" type="text" class="input-text" style="width:200px" placeholder="商品名称" name="name" value="{$Request.param.name}">
    <!--<input type="text" class="input-text" style="width:200px" placeholder="商家手机" name="phone" value="{$Request.param.phone}">-->
    <button type="button" onclick="selectClick('/admin/mk.goods/select?name='+$('#search-name').val())" class="btn btn-success" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜索</button>
    <div class="cl pd-5 bg-1 bk-gray">
        <span class="l">
             <!--menu='resume' add添加 forbid禁用  resume恢复 delete删除 recyclebin回收站 saveOrder 保存排序-->
            <!--{tp:menu menu='saveOrder' /}-->
        </span>
        <span class="r pt-5 pr-5">
            共有数据 ：<strong>{$count}</strong> 条
        </span>
    </div>
    <table class="table table-border table-bordered table-hover table-bg mt-20">
        <thead>
        <tr class="text-c">
            {include file="th" /}
            <!--<th width="70">操作</th>-->
        </tr>
        </thead>
        <tbody id="select-box-body">
        {volist name="list" id="vo"}
        <tr class="text-c">
            {include file="td" /}
        </tr>
        {/volist}
        <tr>
            <td colspan="11"><label class="label label-primary sel_store_btn">确认选择</label></td>
        </tr>
        </tbody>
    </table>
    <div class="page-bootstrap" id="page-bar">{$page}</div>
</div>
{/block}
{block name='script'}
<link rel="stylesheet" type="text/css" media="screen" href="__LIB__/lightbox2/css/lightbox.css" />
<script type="text/javascript" src="__LIB__/lightbox2/js/lightbox.js"></script>
<script>
    $(function () {
        $('#page-bar a').each(function () {
            let url = $(this).attr('href');
            $(this).attr('href','javascript:selectClick(\''+url+'\');');
        });
    });
</script>
{/block}